package com.jcp.service.imple;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jcp.dao.ParkMapper;
import com.jcp.entity.Park;
import com.jcp.service.ParkService;

/**
 * 车管管理的服务层实现类
 * @author 朱耿封
 *
 */
@Service
public class ParkServiceImple implements ParkService {
	//车位管理的dao对象的依赖注入
	@Autowired
	private ParkMapper pm;
	/**
	 * 车位管理的查询
	 */
	@Override
	public List<Park> selectPark() {
		// TODO Auto-generated method stub
		
		return pm.selectPark();
	}
	/**
	 * 车位管理的修改功能
	 */
	@Override
	public int updatePark(int ordinary_park_space, int vip_park_space, int remaining_park_space) {
		
		return pm.updatePark(ordinary_park_space, vip_park_space, remaining_park_space);
	}

}
